<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	{ci_page_header}

    <link href="<?php print base_url('template/ess'); ?>/css/style.css" rel="stylesheet" type="text/css" />
    <link href="<?php print base_url('template/ess/css/menu.css'); ?>" rel="stylesheet" type="text/css" />
    
    <link href="<?php print base_url('template/ess'); ?>/css/redmond/jquery-ui-1.9.0.custom.css" rel="stylesheet">
    <script src="<?php print base_url('template/ess'); ?>/js/jquery-1.8.2.js"></script>
    <script src="<?php print base_url('template/ess'); ?>/js/jquery-ui-1.9.0.custom.js"></script>
    <script src="<?php print base_url('template/ess/js/jquery.memu.js'); ?>"></script>
    <script src="<?php print base_url('html/js/jquery.form.js');?>"></script>
    
    <link href="<?php print base_url('html/fancybox/fancybox/jquery.fancybox-1.3.4.css'); ?>" rel="stylesheet">
    <script src="<?php print base_url('html/fancybox/fancybox/jquery.fancybox-1.3.4.pack.js'); ?>"></script>
    
    <link href="<?php print base_url('template/ess'); ?>/css/datatable_jui.css" rel="stylesheet">
    <script type="text/javascript" language="javascript" src="<?php print base_url('html'); ?>/datatables-1.9.4/media/js/jquery.dataTables.js"></script>
    
    <script src="<?php print base_url('template/ess/js/system.js'); ?>"></script>
    {ci_page_css}
    {ci_page_js}
    
</head>
<body>
    <div id="wrapper">
        <div id="header">
            <div id="topheader">
                Phan Mem Quan Ly Kho Hang Online
                <div id="topheader_r">
                    <!--<ul class="menu-user">
                        <li><a href="#"><div class="icon-admin"></div><?php print $this->jimauth->username(); ?></a></li>
                        <li><a href="<?php print site_url('logout'); ?>" title="Logout"><div class="icon-logout"></div></a></li>
                    </ul>-->
                </div>
            </div>
            <?php if(isset($this->template->page_title) && $this->template->page_title != '' ):?>
            <div id="titleheader"><?php print $this->template->page_title; ?></div>
            <?php endif; ?>
            <div id="mainheader">
                <ul class="memu">
                    <li class="memu-root">
                        <a href="#"><div class="memu-icon sprite-computer"></div><?php print lang('menu_hethong'); ?></a>
                        <ul class="child">
                            <?php if( has_permission('System.Permission.PageView') ): ?>
                            <li><a href="<?php print site_url('permission') ?>"><div class="memu-icon sprite-computer"></div><?php print lang('menu_permission') ?></a></li>
                            <?php endif; ?>
                            <?php if( has_permission('System.Role.PageView') ): ?>
                            <li><a href="<?php print site_url('roles') ?>"><div class="memu-icon sprite-computer"></div><?php print lang('menu_role') ?></a></li>
                            <?php endif; ?>
                            <?php if( has_permission('System.Role.Settings') ): ?>
                            <li><a href="<?php print site_url('roles/permission') ?>"><div class="memu-icon sprite-computer"></div><?php print lang('menu_phanquyen') ?></a></li>
                            <?php endif; ?>
                            <?php if( has_permission('System.User.PageView') ): ?>
                            <li><a href="<?php print site_url('users') ?>"><div class="memu-icon sprite-computer"></div><?php print lang('menu_users') ?></a></li>
                            <?php endif; ?>
                            <!--<li><a href="#"><div class="memu-icon sprite-computer"></div>Nhat Ky He Thong</a></li>-->
                            <!--<li><a href="#"><div class="memu-icon sprite-computer"></div>Ket Thuc</a></li>
                            <li><a href="#"><div class="memu-icon sprite-computer"></div>Dang Xuat</a></li>
                            <li><a href="#"><div class="memu-icon sprite-computer"></div>Thong Tin</a></li>-->
                            <!--<li class="has-children">
                                <a href="#"><div class="memu-icon sprite-computer"></div>Du Lieu</a>
                                <ul>
                                    <li><a href="#"><div class="memu-icon sprite-computer"></div>Sao Luu</a></li>
                                    <li><a href="#"><div class="memu-icon sprite-computer"></div>Phuc Hoi</a></li>
                                    <li><a href="#"><div class="memu-icon sprite-computer"></div>Sua Chua</a></li>
                                    <li><a href="#"><div class="memu-icon sprite-computer"></div>Ket Chuyen</a></li>
                                </ul>
                            </li>-->
                        </ul>
                    </li>
                    <li class="memu-root">
                        <a href="#"><div class="memu-icon sprite-order"></div><?php print lang('menu_danhmuc'); ?></a>
                        <ul class="child">
                            <?php if( has_permission('KHVT.Product.PageView') ): ?>
                            <li><a href="<?php print site_url('vt'); ?>"><div class="memu-icon sprite-file"></div><?php print lang('menu_danhsachvattu'); ?></a></li>
                            <?php endif; ?>
                            <?php if( has_permission('KHVT.Category.PageView') ): ?>
                            <li><a href="<?php print site_url('vt/pl'); ?>"><div class="memu-icon sprite-file"></div><?php print lang('menu_ploaivattu'); ?></a></li>
                            <?php endif; ?>
                            <?php if( has_permission('KHVT.Value.PageView') ): ?>
                            <li><a href="<?php print site_url('vt/dv'); ?>"><div class="memu-icon sprite-file"></div><?php print lang('menu_donvitinh'); ?></a></li>
                            <?php endif; ?>
                            <?php if( has_permission('KHVT.Supplier.PageView') ): ?>
                            <li><a href="<?php print site_url('vt/supplier'); ?>"><div class="memu-icon sprite-file"></div><?php print lang('menu_nhacungcap'); ?></a></li>
                            <?php endif; ?>
                            <?php if( has_permission('KHVT.Construction.PageView') ): ?>
                            <li><a href="<?php print site_url('vt/construction'); ?>"><div class="memu-icon sprite-file"></div><?php print lang('menu_qlycongtrinh'); ?></a></li>
                            <?php endif; ?>
                            <?php if( has_permission('KHVT.Employee.PageView') ): ?>
                            <li><a href="<?php print site_url('employee'); ?>"><div class="memu-icon sprite-file"></div><?php print lang('menu_employee'); ?></a></li>
                            <?php endif; ?>
                        </ul>
                    </li>
                    <li class="memu-root">
                        <a href="<?php print site_url('rp'); ?>"><div class="memu-icon sprite-khohang"></div><?php print lang('menu_khohang'); ?></a>
                        <ul class="child">                            
                            <li class="has-children">
                                <a href="#<?php //print site_url('nk'); ?>"><div class="memu-icon sprite-file"></div>Quan Ly Kho</a>
                                <ul>
                                    <?php if( has_permission('KHVT.Product.Import') ): ?>
                                    <li><a href="<?php print site_url('nk/import'); ?>"><div class="memu-icon sprite-file"></div><?php print lang('menu_nhapkho') ?></a></li>
                                    <?php endif; ?>
                                    <?php if( has_permission('KHVT.Product.Export') ): ?>
                                    <li><a href="<?php print site_url('xk/export'); ?>"><div class="memu-icon sprite-file"></div><?php print lang('menu_xuatkho') ?></a></li>
                                    <?php endif; ?>
                                    <li><a href="<?php print site_url('rp/vt'); ?>"><div class="memu-icon sprite-file"></div><?php print lang('menu_report_vt'); ?></a></li>
                                </ul>
                            </li>
                            <li><a href="<?php print site_url('rp'); ?>"><div class="memu-icon sprite-file"></div><?php print lang('menu_qlyphieunhapxuat'); ?></a></li>
                            <li><a href="<?php print site_url('rp/report'); ?>"><div class="memu-icon sprite-file"></div><?php print lang('menu_baocaothongke'); ?></a></li>
                            <!--
                            <li class="has-children">
                                <a href="#"><div class="memu-icon sprite-computer"></div>Tien Ich</a>
                                <ul>
                                    <li><a href="#"><div class="memu-icon sprite-computer"></div>Chuyen Kho</a></li>
                                    <li><a href="#"><div class="memu-icon sprite-computer"></div>Dong goi</a></li>
                                    <li><a href="#"><div class="memu-icon sprite-computer"></div>Kiem Ke</a></li>
                                    <li><a href="#"><div class="memu-icon sprite-computer"></div>Tong Hop Ton Kho</a></li>
                                </ul>
                            </li>
                            <li class="has-children">
                                <a href="#"><div class="memu-icon sprite-computer"></div>Cong Cu</a>
                                <ul>
                                    <li><a href="#"><div class="memu-icon sprite-computer"></div>Nhap So Du Ban Dau</a></li>
                                    <li><a href="#"><div class="memu-icon sprite-computer"></div>Lich Su Hang Hoa</a></li>
                                    <li><a href="#"><div class="memu-icon sprite-computer"></div>Quan Ly Chung Tu</a></li>
                                </ul>
                            </li>
                            -->
                        </ul>
                    </li>
                    <li class="memu-root">
                        <a href="#"><div class="memu-icon sprite-help"></div><?php print lang('menu_trogiup'); ?></a>
                        <ul class="child">
                            <!--<li><a href="#">Huong Dan Su Dung</a></li>-->
                            <li><a href="#"><div class="memu-icon sprite-file"></div>Lien He</a></li>
                            <li><a href="<?php print site_url('index/test'); ?>"><div class="memu-icon sprite-file"></div>Test</a></li>
                            <!--<li class="has-children">
                                <a href="#"><div class="memu-icon sprite-computer"></div>Thong Tin</a>
                                <ul>
                                    <li><a href="#"><div class="memu-icon sprite-computer"></div>Dang Ky</a></li>
                                    <li><a href="#"><div class="memu-icon sprite-computer"></div>Cap Nhat</a></li>
                                    <li><a href="#"><div class="memu-icon sprite-computer"></div>Thong Tin</a></li>
                                </ul>
                            </li>-->
                        </ul>
                    </li>
                </ul>
                <ul class="menu-user" style="float: right;">
                    <li><a href="#"><div class="icon-admin"></div><?php print $this->jimauth->username(); ?></a></li>
                    <li><a href="<?php print site_url('logout'); ?>" title="Logout"><div class="icon-logout"></div></a></li>
                </ul>
                <div class="clear"></div>
            </div>
            <div id="lbheader"></div>
            <div id="site-logo"><a href="#"><img src="<?php print base_url('template/ess/images/ess-logo-h100.png');?>" alt=""></a></div>
            <div id="logo-home"><a href="<?php print site_url(''); ?>" title="Home"><div class="icon-home"></div></a></div>
        </div>        
        
        <div id="content">
            {ci_page_view}
        
        </div>
        
        <div id="footer">
        
        </div>
    </div>
    
    <div id="dialog_error" title="<?php print lang('title_thongbao'); ?>"></div>
</body>
</html>